<div class="tableToolbar">
    <div class="coll-md-9" id="addInput">
        <div class="coll-md-2">
            <input type="text" class='search' placeholder="用户名/真实姓名" ng-model="ctrlScope.itemsearch.conditionName">
        </div>
        <div class="coll-md-1 scalenone" id="search2">
            <div class="coll-md-10 triangle">
                <select class="form-control" ng-model="ctrlScope.itemsearch.userType">
                    <option selected disabled hidden value="">用户类型</option>
                    <option value="0">前台用户</option>
                    <option value="1">后台用户</option>
                </select>
            </div>
        </div>
        <div class="coll-md-4 scalenone"  id="searchdate" datahide>
            <div class="coll-md-5" >
                <p class="input-group">
                    <input type="text" class="search" placeholder="添加开始时间" uib-datepicker-popup="yyyy-MM-dd"
                           ng-model="ctrlScope.itemsearch.beginDateTimex" is-open="popup1.opened" datepicker-options="dateOptions"/>
						<span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open1()"><i
                                                class="glyphicon glyphicon-calendar"></i></button>
							          </span>
                </p>
            </div>
            <div class="coll-md-5">
                <p class="input-group inline">
                    <input type="text" class="search" placeholder="添加结束时间" uib-datepicker-popup="yyyy-MM-dd"
                           ng-model="ctrlScope.itemsearch.endDateTimex" is-open="popup2.opened" datepicker-options="dateOptions"/>
						<span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open2()"><i
                                                class="glyphicon glyphicon-calendar"></i></button>
							          </span>
                </p>
            </div>
        </div>
        <div class="coll-md-2">
            <input type="button" class="small-icon search2-icon" value="搜索" ng-click="search()">
            <input type="button" class="small-icon search2" value="搜索">
            <input type="button" class="small-icon reset-icon" reset-icon value="重置" ng-click="reset()">
            <input type="button" class="small-icon reset" value="重置">

            <div class="dropdown-menu-right">
                <input type="button" class="small-icon more-icon" value="更多" title='更多搜索项' id="more-icon" data-toggle="dropdown"
                       aria-haspopup="true" aria-expanded="false">
                <input type="button" class="small-icon more" value="更多">
                <ul class="dropdown-menu" style='margin-left:80px;' aria-labelledby="dropdownMenu2" more-search>
                    <li><a href="javascript:;">日期搜索</a></li>
                    <li><a href="javascript:;">状态搜索</a></li>
                </ul>
            </div>
        </div>
    </div>
    <div class="coll-md-1">
        <!--<input type="button" class="bttn pos-left"  ng-click="addBank()" value="新建">-->
        <button class="small-icon btn btn-default pos-right" id="itemExport">
            <i class="fa fa-download" ng-click="download()"></i>
        </button>
    </div>
</div>
<table ui-table="orderParams">
    <thead>
    <tr>
        <th>ID</th>
        <th>用户名</th>
        <th>真实姓名</th>
        <th>手机号</th>
        <th>银行名称</th>
        <th>银行卡号</th>
        <th>添加时间</th>
        <th>提现限制</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr ng-repeat="item in orderParams.$rows">
        <td>{{item.id}}</td>
        <td><span ng-if="item.username">{{item.username}}</span>
            <span ng-if="item.sysUsername">{{item.sysUsername}}</span>
        </td>
        <td>{{item.realname}}</td>
        <td>{{item.mobile}}</td>
        <td>{{item.bankName}}</td>
        <td>{{item.cardNo}}</td>
        <td>{{item.addtime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
        <td>
            <span ng-if="item.cashLimit==0">未限制</span>
            <span ng-if="item.cashLimit==1">已限制</span>
            <a ng-click="openlimit(item.userId,item.cashLimit)">修改</a>
        </td>
        <td>
        	<!--<a style="margin-right: 3%" ng-click="modifyModal(item.id)">编辑</a>-->
        	<!--<a style="margin-right: 3%" ng-click="openView(item.userId)">查看</a>-->
        </td>
    </tr>
    </tbody>
</table>
<modal title="查看" visible="viewModal">
    <form class="form-horizontal">
        <div class="form-body">
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">银行名称：</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="bank.bankName" readonly>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">银行卡号：</label>

                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="bank.cardNo" readonly>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">银行编码：</label>

                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="bank.bankCode" readonly>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</modal>
<modal title="限制提现" visible="limitModel" style="margin:250px auto;">
    <form class="form-horizontal" role="form" name="myForm" novalidate>
        <div class="form-body">
            <div class="row">
                <div class="col-md-2">
                    <div class="form-group">
                        <label class="control-label col-md-12">是否限制提现</label>
                    </div>
                </div>
                <div class="col-md-10">
                    <div class="form-group">
                        <div class="col-md-12">
                            <label class="radio-inline">
                                <input type="radio" name="firstVerifyStatus" value="1" ng-model="limit.status" ng-checked="islimitChecked">
                                是 </label>
                            <label class="radio-inline">
                                <input type="radio" name="firstVerifyStatus" value="0" ng-model="limit.status" ng-checked="isNotlimitChecked">
                                否 </label>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-md-12 buttonArea">
                <button type="button"  class="btn blue" ng-click="limit()">确定</button>
            </div>

        </div>
    </form>
</modal>
<!--<modal title="添加" visible="addModal">-->
    <!--<form class="form-horizontal">-->
        <!--<div class="form-body">-->
            <!--<div class="row">-->
                <!--<div class="col-md-6">-->
                    <!--<div class="form-group">-->
                        <!--<label class="control-label col-md-4">用户ID：</label>-->
                        <!--<div class="col-md-8">-->
                            <!--<input type="text" class="form-control" ng-model="add.userId" >-->
                        <!--</div>-->
                    <!--</div>-->
                <!--</div>-->
            <!--</div>-->
            <!--<div class="col-md-12 buttonArea">-->
                <!--<button type="button"  class="btn blue" ng-click="addBtn()">确定</button>-->
            <!--</div>-->
        <!--</div>-->
    <!--</form>-->
<!--</modal>-->


